
class IconComponentProps {
    iconName:string = ""
}

export default function IconComponent({ iconName }: IconComponentProps){

    if (iconName.startsWith("fa")){
        return <i className={`${iconName} buttonIcon`}></i>;
    }

    // 如果图标都不包含fa，那么直接返回该文本本身
    return <span className={"buttonIcon"}>{iconName}</span>;
}
